package com.cskaoyan.bean.coupon;

/**
 * xdx
 * 2020/12/10
 * 9:31
 */
public class ExchangeCouponVO {

    /**
     * errno : 742
     * errmsg : 优惠券不正确
     */

    private int errno;
    private String errmsg;

    public int getErrno() {
        return errno;
    }

    public void setErrno(int errno) {
        this.errno = errno;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public ExchangeCouponVO() {
    }

    public ExchangeCouponVO(int errno, String errmsg) {
        this.errno = errno;
        this.errmsg = errmsg;
    }

    public static ExchangeCouponVO ok(){
        return new ExchangeCouponVO(0,"成功");
    }

    public static ExchangeCouponVO err(){
        return new ExchangeCouponVO(742,"兑换码不正确");
    }
    public static ExchangeCouponVO err(String s){
        return new ExchangeCouponVO(742,s);
    }
}
